package com.song.colud.feignHystrixOrder.config.Impl;

import com.song.colud.feignHystrixOrder.config.feignConfig;
import org.springframework.stereotype.Component;

/**
 * @Author ZhangGuisong
 * @Date 2021/2/21-17:26
 */
@Component
public class feignConfigImpl implements feignConfig {
    @Override
    public String getOk(Integer id) {
        return Thread.currentThread().getName()+"程序异常，请重新访问"+id;
    }

    @Override
    public String Error(Integer id) {
        return Thread.currentThread().getName()+"访问超时，请重新访问"+id;
    }
}
